<div class="content_box">
  <h1>Not&iacute;cias</h1>
  <div class="right_corner">
    <a class="contentbox_btn" href="<?php echo url_for('news/new') ?>">Novo</a>
    <a href="<?php echo url_for('@news?sf_format=atom') ?>"><img src="/images/feed.png" alt="Feed completo"/></a>
  </div>
  <div class="content">

  <?php include_partial('news/list', array('news_list' => $pager->getResults())) ?>
 
  <?php if ($pager->haveToPaginate()): ?>
    <div class="pagination">
      <a href="<?php echo url_for('news') ?>?page=1">
        <img src="/images/first.png" alt="Primeira p&aacute;gina" title="Primeira p&aacute;gina" />
      </a>
 
      <a href="<?php echo url_for('news') ?>?page=<?php echo $pager->getPreviousPage() ?>">
        <img src="/images/previous.png" alt="P&aacute;gina anterior" title="P&aacute;gina anterior" />
      </a>
 
      <?php foreach ($pager->getLinks() as $page): ?>
        <?php if ($page == $pager->getPage()): ?>
          <?php echo $page ?>
        <?php else: ?>
          <a href="<?php echo url_for('news') ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
        <?php endif; ?>
      <?php endforeach; ?>
 
      <a href="<?php echo url_for('news') ?>?page=<?php echo $pager->getNextPage() ?>">
        <img src="/images/next.png" alt="Pr&oacute;xima p&aacute;gina" title="Pr&oacute;xima p&aacute;gina" />
      </a>
 
      <a href="<?php echo url_for('news') ?>?page=<?php echo $pager->getLastPage() ?>">
        <img src="/images/last.png" alt="&Uacute;ltima p&aacute;gina" title="&Uacute;ltima p&aacute;gina" />
      </a>
    </div>
    <?php endif; ?>
 
    <div class="pagination_desc">
      <strong><?php echo $pager->getNbResults() ?></strong> not&iacute;cias
 
      <?php if ($pager->haveToPaginate()): ?>
        - p&aacute;gina <strong><?php echo $pager->getPage() ?>/<?php echo $pager->getLastPage() ?></strong>
      <?php endif; ?>
    </div>
  
  </div> <!-- close div id="content" -->
</div><!-- close div id="content_box" -->
